// axios
import request from '@/utils/request'


export function submitApi(data) {
    return request({
        url: '/Api/DjUser/purpose',
        method: 'post',
        headers: {
            'Content-Type': "application/x-www-form-urlencoded; charset=UTF-8",
            token: '6788263cfb9d1508124aac2a697f76d3'
        },
        data
    })
}


export function share(data) {
    console.log(data)
    return request({
        // url: 'https://m.2025.net/share.php',
        url: '/share.php',
        method: 'post',
        data
    })
}

export function getArticle(data) {
    return request({
        url: '/api/article/news_list',
        method: 'get',
        params: {
            ...data
        }
    })
}


export function articleDetail(data) {
    return request({
        url: '/api/article/details',
        method: 'get',
        params: {
            ...data
        }
    })
}
